//
//  UserInfoModel.m
//  BaishidaiKnight
//
//  Created by mac book on 2019/1/24.
//  Copyright © 2019年 sy. All rights reserved.
//

#import "UserInfoModel.h"

@implementation UserInfoModel


+ (NSDictionary *)replacedKeyFromPropertyName {
    
    return @{
             
             @"user_sale":@"new_user_sale"
             
             };
    
    
}

- (void)encodeWithCoder:(NSCoder *)encoder
{
    [encoder encodeObject:self.user_picture forKey:@"user_picture"];
    [encoder encodeObject:self.type forKey:@"type"];
    [encoder encodeObject:self.uid forKey:@"uid"];
    
    [encoder encodeObject:self.token forKey:@"token"];
    [encoder encodeObject:self.storeuid forKey:@"storeuid"];
    [encoder encodeObject:self.status forKey:@"status"];
    
    [encoder encodeObject:self.realname forKey:@"realname"];
    [encoder encodeObject:self.phone forKey:@"phone"];
    [encoder encodeObject:self.pass forKey:@"pass"];
    
    [encoder encodeObject:self.lng forKey:@"lng"];
    [encoder encodeObject:self.lat forKey:@"lat"];
    [encoder encodeObject:self.freeze_account forKey:@"freeze_account"];
    [encoder encodeObject:self.dataline forKey:@"dataline"];
    
    
    [encoder encodeObject:self.close forKey:@"close"];
    [encoder encodeObject:self.sale_sub forKey:@"sale_sub"];
    [encoder encodeObject:self.send forKey:@"send"];
    [encoder encodeObject:self.bank_name forKey:@"bank_name"];
    [encoder encodeObject:self.bank forKey:@"bank"];
    [encoder encodeObject:self.area_id forKey:@"area_id"];
    [encoder encodeObject:self.account forKey:@"account"];
    [encoder encodeObject:self.kf_tel forKey:@"kf_tel"];

    
}


- (id)initWithCoder:(NSCoder *)decoder
{
    if(self = [super init])
    {
        self.user_picture = [decoder decodeObjectForKey:@"user_picture"];
        self.type = [decoder decodeObjectForKey:@"type"];
        self.uid = [decoder decodeObjectForKey:@"uid"];
        self.token = [decoder decodeObjectForKey:@"token"];
        self.storeuid = [decoder decodeObjectForKey:@"storeuid"];
        self.status = [decoder decodeObjectForKey:@"status"];
        
        self.realname = [decoder decodeObjectForKey:@"realname"];
        self.phone = [decoder decodeObjectForKey:@"phone"];
        self.pass = [decoder decodeObjectForKey:@"pass"];
        
        self.lng = [decoder decodeObjectForKey:@"lng"];
        self.lat = [decoder decodeObjectForKey:@"lat"];
        self.freeze_account = [decoder decodeObjectForKey:@"freeze_account"];
        self.dataline = [decoder decodeObjectForKey:@"dataline"];
        self.close = [decoder decodeObjectForKey:@"close"];
        self.sale_sub = [decoder decodeObjectForKey:@"sale_sub"];
        
        
        self.send = [decoder decodeObjectForKey:@"send"];
        self.bank_name = [decoder decodeObjectForKey:@"bank_name"];
        self.bank = [decoder decodeObjectForKey:@"bank"];
        self.area_id = [decoder decodeObjectForKey:@"area_id"];
        
        self.account = [decoder decodeObjectForKey:@"account"];
        self.kf_tel = [decoder decodeObjectForKey:@"kf_tel"];

    }
    return  self;
}





@end
